package cn.jia.spring2.pojo.InterfaceImpl;

import cn.jia.spring2.pojo.myInterface.CompactDisc;
import cn.jia.spring2.pojo.myInterface.Media;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by jia on 2018/3/27.
 */
@Component
public class SgtPeppers implements CompactDisc {
    private String title ="song";
    private String artist ="刘欢";
    @Override
    public void play() {
        System.out.println(title+artist);
    }

    @Override
    public void playTrack(int number, int x) {

    }
}
